﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LEARNREN.COM.Entity;

namespace LEARNREN.COM.UI.Template
{
    public class SinglePageTemplate : HtmlTemplate
    {
        Catalogue catalogue = null;
        public SinglePageTemplate(string tmpFile, long cId)
            : base(tmpFile)
        {
            this.catalogue = groupLogicFactory.CatalogueLogic.GetByIdFromCache(cId);
        }

        protected override void SetContextData()
        {
            base.SetContextData();
            this.context.State = catalogue;
            this.context.CatalogueID = catalogue.Id;
        }
    }
}
